﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace iCollect.CollectDetail
{
    public partial class CollectConfig : UserControl
    {
        MonitorAdapterConfig monitorConfig;
        Channelconfig channelConfig;
        OptionsConfig optionsConfig;

        public CollectConfig()
        {
            InitializeComponent();

            channelConfig = new Channelconfig();
            channelConfig.Dock = System.Windows.Forms.DockStyle.Fill;
            tabPage1.Controls.Add(channelConfig);

            monitorConfig = new MonitorAdapterConfig();
            monitorConfig.Dock = System.Windows.Forms.DockStyle.Fill;
            tabPage2.Controls.Add(monitorConfig);

            optionsConfig = new OptionsConfig();
            optionsConfig.Dock = System.Windows.Forms.DockStyle.Fill;
            optionPanel.Controls.Add(optionsConfig);
        }

        public void loadDevice()
        {
            monitorConfig.loadDevice();
            channelConfig.loadDevice();
            optionsConfig.loadDevice();
        }
    }
}
